package com.blog.controller.front;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@Controller
@RequestMapping("/")
public class DefaultController {

    @RequestMapping("/")
    void index(HttpServletResponse response) throws IOException {
        response.sendRedirect("/auth/login");
    }
}
